package org.invigorare.auctions.data.entities;

import java.util.ArrayList;
import java.util.List;

import org.invigorare.auctions.data.entities.Licensee.LicenseType;

public class EntryInfo {

	public final String entryId, timestamp, driverName, vehNo, vehType;
	public final int prodId;
	public final float prodWeight;
	public final String prodFarm, bearerLic, agentLic;

	public EntryInfo(String entryId, String timestamp, String driverName, String vehNo, String vehType, int prodId, float prodWeight, String prodFarm, String bearerLic, String agentLic) {
		this.entryId = entryId;
		this.timestamp = timestamp;
		this.driverName = driverName;
		this.vehNo = vehNo;
		this.vehType = vehType;
		this.prodId = prodId;
		this.prodWeight = prodWeight;
		this.prodFarm = prodFarm;
		this.bearerLic = bearerLic;
		this.agentLic = agentLic;
	}
	
	public static List<String> extractEntryNumbersFromList(List<EntryInfo> list) {
		List<String> out = new ArrayList<String>(list.size());
		
		for (EntryInfo ent: list) {
			out.add(ent.entryId);
		}
		
		return out;
	}
	
}
